<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	
	<style>
	#div1{
		width: 859px;
		height: 100px;
		line-height: 100px;
		border: 2px solid #b6b6b6;
		color: blueviolet;
		margin: 80px auto;
	
		font-size: 18px;
		text-align: center;
		
	}

	body{
		background:#f9f9f9;
	}
	
	</style>
</head>
<body>
	<div id='div1'></div>
</body>
<script src='cookie.js'></script>
	<script>
	window.onload=function(){
		var num=cookie.getCookie('num')
		var oDiv=document.getElementById('div1');
		if(num=='0'){
			oDiv.innerHTML='你没有选中任何商品';
			setTimeout(function(){
				window.location.href='list.html'

			},1000)

		}else{

			oDiv.innerHTML='我知道我要买'+num+'束漂亮的花朵！！心情美美哒！！！'+'<img src="images/2.png">';

		}
	}
	</script>
</html>